package com.caxxb.dao.impl;

import com.caxxb.dao.GameMasterDao;
import com.caxxb.entity.GameMaster;
import com.caxxb.entity.User;
import com.caxxb.util.DBUtil;

import java.util.List;

public class GameMasterDaoImpl implements GameMasterDao {

    //登录的方法
    @Override
    public List<GameMaster> login(String gm_name, String gm_password) {
        String sql="SELECT * from game_master where gm_name = ? and gm_password = ?";
        List<GameMaster> list = DBUtil.exQuery(sql, GameMaster.class,gm_name,gm_password);
        return list;
    }
}
